package cn.jinjimi.app.main.widget.biz;

import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.Gravity;
import android.widget.LinearLayout;

import cn.jinjimi.app.R;

/**
 * @author zhenhua
 * @date 2018/4/28
 */

public class HomeBannerView extends LinearLayout {
    public HomeBannerView(Context context) {
        super(context);
        init();
    }

    private void init() {
        inflate(getContext(), R.layout.widget_banner, this);
        setBackgroundColor(ContextCompat.getColor(getContext(), R.color.light_line_color));
        setGravity(Gravity.CENTER);
        setPadding(0, 20, 0, 0);
    }


}
